/* @(#)GSOrderSubmitVO.java    
*
* Project: GS
*
* Modify Information:
* =============================================================================
*   Author       Date       Description
*   ------------ ---------- ---------------------------------------------------
*   Simonyi Peng 2006-2-15    新增
*
* Copyright Notice:
* =============================================================================
*    Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room, 
*        Science & Technology Building, No. 9 South Street, Zhong Guan Cun, 
*        Haidian District, Beijing ,100081, China All rights reserved.
*
*    This software is the confidential and proprietary information of
*        Beijing HiTRUST Technology Co., Ltd. ("Confidential Information").
*        You shall not disclose such Confidential Information and shall use it
*        only in accordance with the terms of the license agreement you entered
*        into with HiTRUST.
*
* Warning:
* =============================================================================
* 
*/
package com.hitrust.gs.vo;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.hitrust.gs.service.GSBaseBean;


public class GSOrderModifyViewVO implements GSBaseBean{

    public String orderId;
    public String orderDetailId;
    public String orderDetailStatus;      //订单状态
    
    public String manufactureId;    //产品编码
    public String orderDeptId;      //订货单位
    public String orderDeptName;    //订货单位名称
    public String manufactureName;  //产品名称
    public double manufactureUnitPrice;
    public double orderCount;
    public String quantUnit;
    public String concentricityId;
    public String deliverGoodsAddrId;
    public String deliverGoodsAddr;
    public String orderCreateDateStr;
    public String orderCreateDateEnd;
    public String orderCreateDate;
    public String manufInfo;
    public String deliverMode;
    public String balanceMode;
    public String manufSpec;
    public String manufType;
    public String manufBrand; 
    public String creater;
    public String contactName;
    public String contactPhone;
    public String notes;
    public String providerShortName;
    public String deliverGoodsDate;
    public String deliverGoodsTime;
    public String period;
    public String providerId;
    public String mode;
    /* (non-Javadoc)
     * @see com.hitrust.gs.service.GSBaseBean#process(java.sql.ResultSet)
     */
    public Object process(ResultSet aResultSet) throws SQLException {
        
        GSOrderModifyViewVO tGSOrderVO = new GSOrderModifyViewVO();
        tGSOrderVO.orderId = aResultSet.getString("P1").trim();
        tGSOrderVO.orderDetailId = aResultSet.getString("P2").trim();
        tGSOrderVO.orderDetailStatus = aResultSet.getString("P3").trim();
        tGSOrderVO.concentricityId = aResultSet.getString("P4");
        tGSOrderVO.manufactureName = aResultSet.getString("P5").trim();
        tGSOrderVO.manufSpec = aResultSet.getString("P6") == null? "":aResultSet.getString("P6");
        tGSOrderVO.manufType = aResultSet.getString("P7") == null? "":aResultSet.getString("P7");
        tGSOrderVO.manufBrand = aResultSet.getString("P8") == null? "":aResultSet.getString("P8");
        tGSOrderVO.orderCount = aResultSet.getDouble("P9");
        tGSOrderVO.quantUnit = aResultSet.getString("P10") == null? "" :aResultSet.getString("P10");
        tGSOrderVO.orderDeptId = aResultSet.getString("P11")==null?"":aResultSet.getString("P11");
        tGSOrderVO.orderDeptName = aResultSet.getString("P12")==null?"":aResultSet.getString("P12");
        tGSOrderVO.deliverGoodsDate = aResultSet.getString("P13")==null?"":aResultSet.getString("P13");
        tGSOrderVO.deliverGoodsTime = aResultSet.getString("P14")==null?"":aResultSet.getString("P14");
        tGSOrderVO.manufactureUnitPrice = aResultSet.getDouble("P15");
        tGSOrderVO.period = aResultSet.getString("P16")==null?"":aResultSet.getString("P16");
        tGSOrderVO.providerShortName = aResultSet.getString("P17")==null?"":aResultSet.getString("P17");
        tGSOrderVO.manufactureId = aResultSet.getString("P18")==null?"":aResultSet.getString("P18");
        tGSOrderVO.mode = aResultSet.getString("P19")==null?"":aResultSet.getString("P19");
        tGSOrderVO.providerId = aResultSet.getString("GS_PROVIDER_ID")==null?"":aResultSet.getString("GS_PROVIDER_ID");

        //tGSOrderVO.orderCreateDate = aResultSet.getString("P2");
        //tGSOrderVO.creater = aResultSet.getString("P8");
        //tGSOrderVO.deliverMode = aResultSet.getString("P10") == null? "":aResultSet.getString("P10");
        //tGSOrderVO.balanceMode = aResultSet.getString("P11") == null? "":aResultSet.getString("P11");
        //tGSOrderVO.deliverGoodsAddr = aResultSet.getString("P16");
        //tGSOrderVO.contactName = aResultSet.getString("P17") == null? "" : aResultSet.getString("P17");
        //tGSOrderVO.contactPhone = aResultSet.getString("P18") == null? "" : aResultSet.getString("P18");
        //tGSOrderVO.providerName = aResultSet.getString("P19") == null? "" : aResultSet.getString("P19");
        return tGSOrderVO;
    }
}
